package com.wfbi.security.chapter13;

import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 * @author wfbi
 * @version 1.0
 * @date 2021/12/27 1:31 PM
 */
@RestController
public class HelloController {
    @RequestMapping(value = "/hello")
    public void hello(String param) {
        System.out.println("param = " + param);
    }

    @RequestMapping(value = "/hello/{id}")
    public void hello(@PathVariable Integer id, @MatrixVariable String name) {
        System.out.println("id = " + id);
        System.out.println("name = " + name);
    }
}
